package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Travel;
import cn.wolfcode.luowowo.article.domain.TravelContent;
import cn.wolfcode.luowowo.article.query.TravelQueryObject;
import cn.wolfcode.luowowo.article.vo.TravelVO;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TravelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Travel record);

    Travel selectByPrimaryKey(Long id);

    List<Travel> selectAll();

    int updateByPrimaryKey(Travel record);

    List<Travel> queryForList(TravelQueryObject qo);

    List<Travel> getTravelsByViewTop3(Long id);

    void changeReleaseState(@Param("id") Long id, @Param("state") Long state);

    void setVo(TravelVO vo);

    List<Travel> selectTravlesByUid(Long id);


    List<Travel> selectForList(TravelQueryObject qo);

}